package com.sztx.pay.center.common.util;

import java.util.Arrays;
import java.util.List;

public class JFUtils {

	/**
	 * 判断是否是缴费渠道
	 * @param channelId 渠道ID
	 * @return 是缴费渠道true,不是缴费渠道false
	 */
	public static boolean isJFChannel(String channelId) {
		String jfIdsConfig = ConfigUtil.jfChannelIds;
		String[] split = jfIdsConfig.split(",");
		List<String> jfChannelIds = Arrays.asList(split);
		return jfChannelIds.contains(channelId);
	}
	/**
     * 查询缴费渠道默认支付路由
     * @param type  1 快捷支付   2 绑卡
     * @return
     */
    public static String getJfDefaultRouteNo(int type){
    	String routeNo = null;
    	if(type == 1){
    		routeNo = ConfigUtil.jfQuickPayRouteNo;
    	}else if(type == 2){
    		routeNo = ConfigUtil.jfBindCardRouteNo;
    	}
    	return routeNo;
    }
}
